function [softOutput] =  WiSiL_RM_Block_Segmentation(bitsRx,rateMatching)
% The input must be a row vector
% This function recreates the rate matched turbo coded blocks in order to 
% undo the ratematching.
% History:
%
%   Lucas Sousa e Silva 08/2014 - created

E = rateMatching.E;
sum = 0;
softOutput = cell(length(E),1);
for r = 1:length(E)
    
    softOutput{r,1} = bitsRx(:,sum + 1:1:E(r)+sum);
    sum = sum + E(r);
end

end